<div class="barbie-results-container">
    <div class="barbie-results-crown">👑</div>
    <div class="barbie-results-header">
        <h1 class="barbie-results-title">{{ question.question_text }}</h1>
        <div class="barbie-results-wand">✨</div>
    </div>
    
    <div class="barbie-results-content">
        <div class="barbie-trophy">🏆</div>
        
        <ul class="barbie-results-list">
            {% for choice in question.choice_set.all %}
            <li class="barbie-result-item">
                <span class="barbie-choice-text">{{ choice.choice_text }}</span>
                <span class="barbie-votes-count">
                    <span class="barbie-votes-number">{{ choice.votes }}</span>
                    vote{{ choice.votes|pluralize }}
                </span>
                {% if forloop.first and choice.votes > 0 %}
                <span class="barbie-winner-badge">WINNER!</span>
                {% endif %}
            </li>
            {% endfor %}
        </ul>
    </div>
    
    <div class="barbie-results-footer">
        <a href="{% url 'polls:detail' question.id %}" class="barbie-action-button">
            再选一次
            <span class="barbie-button-sparkle">🔄</span>
        </a>
        <a href="{% url 'polls:index' %}" class="barbie-action-button barbie-home-button">
            返回首页
            <span class="barbie-button-sparkle">🏠</span>
        </a>
    </div>
    
    <div class="barbie-footer-note">
        <p>感谢参与芭比公主投票！你的选择很重要 💖</p>
    </div>
</div>

<style>
    /* 芭比公主结果页面样式 */
    .barbie-results-container {
        max-width: 600px;
        margin: 30px auto;
        background-color: #fff0f5;
        border: 3px solid #ffb6c1;
        border-radius: 25px;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(255, 105, 180, 0.2);
        position: relative;
        overflow: hidden;
    }
    
    .barbie-results-crown {
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 2.5em;
        z-index: 10;
    }
    
    .barbie-results-header {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
        position: relative;
    }
    
    .barbie-results-title {
        color: #d14d8b;
        text-align: center;
        margin: 0;
        font-size: 1.8em;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .barbie-results-wand {
        font-size: 1.5em;
        animation: sparkle 2s infinite;
    }
    
    .barbie-results-content {
        position: relative;
        padding: 20px;
        background-color: #ffebf3;
        border-radius: 20px;
        margin-bottom: 25px;
    }
    
    .barbie-trophy {
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 2em;
        background-color: #fff0f5;
        border: 3px solid #ffb6c1;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .barbie-results-list {
        list-style: none;
        padding: 0;
        margin: 30px 0 0;
    }
    
    .barbie-result-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        margin-bottom: 12px;
        background-color: white;
        border-radius: 50px;
        border: 2px solid #ffb6c1;
        position: relative;
        transition: all 0.3s;
    }
    
    .barbie-result-item:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 8px rgba(255, 105, 180, 0.2);
    }
    
    .barbie-choice-text {
        color: #d14d8b;
        font-weight: bold;
        flex-grow: 1;
    }
    
    .barbie-votes-count {
        background-color: #ffb6c1;
        color: white;
        padding: 5px 15px;
        border-radius: 50px;
        font-size: 0.9em;
    }
    
    .barbie-votes-number {
        font-weight: bold;
        font-size: 1.1em;
    }
    
    .barbie-winner-badge {
        position: absolute;
        top: -10px;
        right: -10px;
        background-color: #ff69b4;
        color: white;
        padding: 3px 10px;
        border-radius: 50px;
        font-size: 0.7em;
        font-weight: bold;
        transform: rotate(15deg);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .barbie-results-footer {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 25px;
        flex-wrap: wrap;
    }
    
    .barbie-action-button {
        display: inline-flex;
        align-items: center;
        padding: 12px 25px;
        background-color: #ffb6c1;
        color: white;
        text-decoration: none;
        border-radius: 50px;
        font-weight: bold;
        transition: all 0.3s;
        box-shadow: 0 4px 8px rgba(255, 105, 180, 0.3);
    }
    
    .barbie-action-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(255, 105, 180, 0.4);
    }
    
    .barbie-home-button {
        background-color: #d14d8b;
    }
    
    .barbie-button-sparkle {
        margin-left: 8px;
        animation: sparkle 1.5s infinite;
    }
    
    .barbie-footer-note {
        text-align: center;
        margin-top: 25px;
        font-style: italic;
        color: #ff69b4;
    }
    
    @keyframes sparkle {
        0% { opacity: 0.5; transform: scale(1); }
        50% { opacity: 1; transform: scale(1.2); }
        100% { opacity: 0.5; transform: scale(1); }
    }
    
    /* 响应式设计 */
    @media (max-width: 600px) {
        .barbie-results-container {
            padding: 20px;
        }
        
        .barbie-results-title {
            font-size: 1.5em;
        }
        
        .barbie-results-footer {
            flex-direction: column;
            align-items: center;
        }
        
        .barbie-action-button {
            width: 100%;
            justify-content: center;
        }
    }
</style>